home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / rayshade / graphtal.lzh / Graphtal.Amiga / BBoxDevice.C < prev    next >
C/C++ Source or Header  |  1992-11-17  |  1KB  |  51 lines

  1. /*
  2.  * BBoxDevice.C - bounding box device driver.
  3.  *
  4.  * Copyright (C) 1992, Christoph Streit (streit@iam.unibe.ch)
  5.  *                     University of Berne, Switzerland
  6.  * All rights reserved.
  7.  *
  8.  * This software may be freely copied, modified, and redistributed
  9.  * provided that this copyright notice is preserved on all copies.
  10.  *
  11.  * You may not distribute this software, in whole or in part, as part of
  12.  * any commercial product without the express consent of the authors.
  13.  *
  14.  * There is no warranty or other guarantee of fitness of this software
  15.  * for any purpose.  It is provided solely "as is".
  16.  *
  17.  */
  18.  
  19. #include "BBoxDevice.h"
  20. #include "ViewTransform.h"
  21.  
  22. //___________________________________________________________ BBoxDevice
  23.  
  24. BBoxDevice::BBoxDevice(Options* options)
  25. : DeviceDriver(options)
  26. {}
  27.  
  28. void BBoxDevice::begin(){}
  29.  
  30. /*
  31.  * The only thing we have to do, is wait und report the bounding box.
  32.  */
  33. void BBoxDevice::end(const BoundingBox& b)
  34.   cout << "BoundingBox: "
  35.        << b << "\n\n";
  36.   ViewTransform* view = new ViewTransform(b, theOptions->up, theOptions->fov,
  37.                       theOptions->resX, theOptions->resY);    
  38.   cout << "proposed view parameter:\n"
  39.        << *view << '\n';
  40.  
  41.   delete view;
  42. }
  43.  
  44. void BBoxDevice::cylinder(const Vector&, const Vector&, real){}
  45. void BBoxDevice::cone(const Vector&, real, const Vector&, real){}
  46. void BBoxDevice::sphere(const Vector&, real){}
  47. void BBoxDevice::polygon(Polygon*){}
  48.  
  49.  
  50.